import type { AxiosRequestConfig } from 'axios'

export type HttpRequestConfig = AxiosRequestConfig & {
    needAuth: boolean
    tokenAlias: string
}

const requestConfig: HttpRequestConfig = {
    baseURL: import.meta.env.VITE_APP_BASE_URL,
    headers: {
        'Access-Control-Allow-Origin': '*'
    },
    timeout: 10 * 1000,
    needAuth: true,
    tokenAlias: 'authorization'
}

export default requestConfig
